#coding=utf-8
from selenium import webdriver

driver=webdriver.Firefox()

driver.get('http://localhost:8888/iwebshop')
driver.maximize_window()
try:
    driver.find_element_by_id('word1_error').send_keys('se')
except:
    driver.get_screenshot_as_file("C:\software\iwebshop_error.jpg")
    driver.quit()
